package com.uzai.console.service.feign;

import com.uzai.console.common.UzaiRespVo;
import com.uzai.console.dto.feign.userextinfo.UserExtInfoQueryDto;
import com.uzai.console.entity.es.EsUserExtInfo;
import com.uzai.console.service.feign.impl.UserExtInfoFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Auther: jianghan
 * @Date: 2022/3/30 17:23
 * @Description:
 */
@Component
@FeignClient(value = "uzai-user-server",fallbackFactory = UserExtInfoFallbackFactory.class)
public interface UserExtInfoFeignService {

    @PostMapping("/userextinfo/query")
    UzaiRespVo<EsUserExtInfo> getUserextinfo(@RequestBody UserExtInfoQueryDto userExtInfoQueryDto);
}
